// 节假日调休信息，不同公司的放假时间不一样，自己可以根据实际情况配置
// name是假期名称
// workDay是指原本正常放假的，因为节假日调休需要上班的日期列表
// restDay是整个假期连续放假的日期列表

// 双休节假日配置
const workType0 = [
  {
    name: '元旦',
    workDay: [],
    restDay: ['2022-01-01', '2022-01-02', '2022-01-03']
  },
  {
    name: '春节',
    workDay: ['2022-01-29', '2022-01-30'],
    restDay: ['2022-01-31', '2022-02-01', '2022-02-02', '2022-02-03', '2022-02-04', '2022-02-05', '2022-02-06']
  },
  {
    name: '清明',
    workDay: ['2022-04-02'],
    restDay: ['2022-04-03', '2022-04-04', '2022-04-05']
  },
  {
    name: '五一',
    workDay: ['2022-04-24', '2022-05-07'],
    restDay: ['2022-05-01', '2022-05-02', '2022-05-03', '2022-05-04', '2022-05-05']
  },
  {
    name: '端午',
    workDay: [],
    restDay: ['2022-06-03', '2022-06-04', '2022-06-05']
  },
  {
    name: '中秋',
    workDay: [],
    restDay: ['2022-09-10', '2022-09-11', '2022-09-12']
  },
  {
    name: '国庆',
    workDay: ['2022-10-08', '2022-10-09'],
    restDay: ['2022-10-01', '2022-10-02', '2022-10-03', '2022-10-04', '2022-10-05', '2022-10-06', '2022-10-07']
  },
  {
    name: '元旦',
    workDay: [],
    restDay: ['2022-12-31', '2023-01-01', '2023-01-02']
  }
]

// 大小周节假日配置
const workType1 = [
  {
    name: '元旦',
    workDay: [],
    restDay: ['2022-01-01', '2022-01-02', '2022-01-03']
  },
  {
    name: '春节',
    workDay: ['2022-01-29', '2022-01-30'],
    restDay: ['2022-01-31', '2022-02-01', '2022-02-02', '2022-02-03', '2022-02-04', '2022-02-05', '2022-02-06']
  },
  {
    name: '清明',
    workDay: ['2022-04-02'],
    restDay: ['2022-04-03', '2022-04-04', '2022-04-05']
  },
  {
    name: '五一',
    workDay: ['2022-04-24', '2022-05-07'],
    restDay: ['2022-05-01', '2022-05-02', '2022-05-03', '2022-05-04', '2022-05-05']
  },
  {
    name: '端午',
    workDay: [],
    restDay: ['2022-06-03', '2022-06-04', '2022-06-05']
  },
  {
    name: '中秋',
    workDay: [],
    restDay: ['2022-09-10', '2022-09-11', '2022-09-12']
  },
  {
    name: '国庆',
    workDay: ['2022-10-08', '2022-10-09'],
    restDay: ['2022-10-01', '2022-10-02', '2022-10-03', '2022-10-04', '2022-10-05', '2022-10-06', '2022-10-07']
  },
  {
    name: '元旦',
    workDay: [],
    restDay: ['2022-12-31', '2023-01-01', '2023-01-02']
  }
]

// 单休节假日配置
const workType2 = [
  {
    name: '元旦',
    workDay: [],
    restDay: ['2022-01-01', '2022-01-02']
  },
  {
    name: '春节',
    workDay: ['2022-01-29', '2022-01-30'],
    restDay: ['2022-01-31', '2022-02-01', '2022-02-02', '2022-02-03', '2022-02-04', '2022-02-05', '2022-02-06']
  },
  {
    name: '清明',
    workDay: ['2022-04-02', '2022-04-03'],
    restDay: ['2022-04-04', '2022-04-05']
  },
  {
    name: '五一',
    workDay: [],
    restDay: ['2022-05-01', '2022-05-02']
  },
  {
    name: '端午',
    workDay: ['2022-06-05'],
    restDay: ['2022-06-03', '2022-06-04']
  },
  {
    name: '中秋',
    workDay: [],
    restDay: ['2022-09-10', '2022-09-11']
  },
  {
    name: '国庆',
    workDay: [],
    restDay: ['2022-10-01', '2022-10-02', '2022-10-03', '2022-10-04']
  },
  {
    name: '元旦',
    workDay: [],
    restDay: ['2022-12-31', '2023-01-01']
  }
]

export default [workType0, workType1, workType2]
